<?php

namespace common\models\db\tables;

use Yii;

/**
 * This is the model class for table "{{%admin_user_role}}".
 *
 * @property int $id
 * @property int $user_id
 * @property int $admin_role_id
 */
class AdminUserRole extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%admin_user_role}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_id', 'admin_role_id'], 'required'],
            [['user_id', 'admin_role_id'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'user_id' => Yii::t('app', 'User ID'),
            'admin_role_id' => Yii::t('app', 'Admin Role ID'),
        ];
    }
}
